package com.yq.ylmall;

import com.yq.ylmall.config.*;
import com.yq.ylmall.service.MinioService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

@SpringBootApplication
@EnableDiscoveryClient
@ComponentScan(
        value = "com.yq.ylmall",
        excludeFilters = @ComponentScan.Filter(
                type = FilterType.ASSIGNABLE_TYPE,
                classes = {
                        MinioService.class,
                        MinioConfig.class,
                        Swagger2Config.class,
                        JacksonConfiguration.class,
                        MybatisPlusConfig.class,
                        FeignConfig.class
                }))
public class ServiceGatewayApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceGatewayApplication.class, args);
    }
}
